<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>属性绑定和双向数据绑定</title>
    <script src="../vue.js"></script>
</head>
<body>
<!--v-bind 属性绑定 模板指令 -->
<!-- v-bind:  简写为:-->
<div id="root">
    <div v-bind:title="title">hello word</div>
    <!-- v-model 模板指令 双向绑定 -->
    <input type="text" v-model="msg"/>
    <div>{{msg}}</div>
</div>


</body>
<script>
    new Vue({
        el: "#root",
        data: {
            title: "this is hello world",
            msg:"hello",
        }
    })

</script>
</html>